<template>
	<view class="main">
		<view class="padding-lr32">
			<view class="notice-title">{{notice.title}}</view>
			<view class="notice-publish-time">{{notice.publishTime}}</view>
			<view class="notice-content">
				<uv-parse :content="notice.content"></uv-parse>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: '',
				notice: '',
			}
		},
		onLoad(option) {
			this.id = option.id;
			this.getDetail();
		},
		methods: {
			getDetail() {
				var that = this;
				uni.$uv.http.get('/notice/getNoticeDetail', {
					params: {
						id: that.id
					}
				}).then(res => {
					that.notice = res.data;
				});
			},
		}
	}
</script>

<style>
page {
	height: auto !important;
	background: url('/static/img/my_bg.png') no-repeat;
	background-size: 100% 100%;
}
.main{
	width: 100vw;
	height: 100vh;
	overflow-y: scroll;
}
	.notice-content {
		color: #888
	}

	.notice-publish-time {
		font-size: 24rpx;
		color: #888;
		line-height: 3;
		padding-bottom: 24rpx;
	}

	.notice-title {
		font-size: 39rpx;
		color: #000
	}

</style>